package com.lhgray.sglhome.domain.usecase

import com.freightoa.foundation.presentation.domain.BaseUseCase
import com.lhgray.sglhome.domain.model.WarehouseBean
import com.lhgray.sglhome.data.repository.WarehouseRepository
import javax.inject.Inject


class WarehouseUseCase @Inject constructor(private val warehouseRepository: WarehouseRepository) :
    BaseUseCase() {
    suspend operator fun invoke(fileNo: String): Result<WarehouseBean?> {
        return handleNoDataTask(warehouseRepository.getWarehouseJob(fileNo))
    }

}